package han.yang.service.friendship.model.req;

import han.yang.common.model.RequestBase;
import han.yang.service.friendship.model.dto.FriendDto;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * @author yanghan
 * @date 2023/2/25
 */
public class AddFriendReq extends RequestBase {
    @NotBlank(message = "fromId不能为空")
    private String fromId;

    @NotNull(message = "toItem不能为空")
    private FriendDto toItem;

    public String getFromId() {
        return fromId;
    }

    public void setFromId(String fromId) {
        this.fromId = fromId;
    }

    public FriendDto getToItem() {
        return toItem;
    }

    public void setToItem(FriendDto toItem) {
        this.toItem = toItem;
    }
}
